};
scrollPane.setViewportView(table);
tableModel = new DefaultTableModel(null, new String[] {
- "Booking Number", "Is paid", "Booking Date","Name","E-mail", "Telephone" });
+ "Booking Number", "Booking Date","Name","E-mail", "Telephone" });
// Maybe there is a better way to avoid interaction.
// table.setEnabled(false);
btnDenyAddition.setBounds(390, 395, 169, 25);
contentPane.add(btnDenyAddition);
- JButton btnSetAsPaid = new JButton("Set as paid");
- btnSetAsPaid.setBounds(239, 395, 89, 23);
- btnSetAsPaid.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
-
- }
- });
- contentPane.add(btnSetAsPaid);
Enumeration<Booking> en = this.bookings.elements();
Booking book;
while (en.hasMoreElements()) {
book = en.nextElement();
Vector<Object> row = new Vector<Object>();
row.add(book.getBookNumber());
- row.add(book.isPaid());
row.add(book.getBookDate());
row.add(book.getClient().getName());
row.add(book.getClient().getMailAccount());